package com.ycy.topapi;

public class TopResult{
	private String errorStr;

	private String result;

	public String getResult(){
		return result;
	}

	public void setResult(String result){
		this.result = result;
	}

	public String getErrorStr(){
		return errorStr;
	}

	public void setErrorStr(String errorStr){
		this.errorStr = errorStr;
	}

	public String getJson(){
		if (this.getErrorStr() == null) {
			return this.result;
		} else {
			return "{\"err\":\"" + this.errorStr + "\"}";
		}
	}
}
